package swingtest;

import java.awt.Container;

import javax.swing.JButton;
import javax.swing.JFrame;

public class J_DiagonalLayoutExample {

	public static void main(String[] args) {
		JFrame app = new JFrame("J_DiagonalLayout");
		app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		app.setSize(300, 200);
		Container c = app.getContentPane();
		c.setLayout(new J_DiagonalLayout());
		for (int i = 0; i < 5; i++) {
			JButton button = new JButton("button"+i);
			c.add(button);
		}
		app.setVisible(true);
	}

}
